When you save a document that contains fields as an HTML document, Office automatically converts date, time, and DocInformation fields to special HTML tags. The field contents are inserted between the opening and closing HTML tags of the converted fields. These special HTML tags do not correspond to standard HTML tags.
フィールドを含むドキュメントを HTML 形式ドキュメントとして保存する場合、日付、時刻、およびドキュメント情報の各フィールドは、Office によって自動的に特殊な HTML タグで表現されます。変換されたフィールドの内容は、該当する HTML タグの間に配置されます。これらの特殊な HTML タグは、標準 HTML タグには対応していません。
Office Writer fields are identified by the <SDFIELD> tag in an HTML document. The field type, the format, and the name of the special field are included in the opening HTML tag. The format of a field tag that is recognized by an HTML filter depends on the field type.
HTML ドキュメントでは、Office Writer のフィールドは <SDFIELD> タグで囲まれます。HTML の開くタグには、フィールドの種類、書式、そして特殊フィールドの名前が含まれます。HTML フィルタが認識するフィールドタグの書式は、フィールドの種類によって異なります。
For "Date" and "Time" fields, the TYPE parameter equals DATETIME. The format of the date or the time is specified by the SDNUM parameter, for example, DD:MM:YY for dates, or HH:MM:SS for time.
日付と時刻のフィールドの場合、TYPE パラメータの値は DATETIME です。日付または時刻の書式は SDNUM パラメータによって指定されます。たとえば、日付は DD:MM:YY で、時刻は HH:MM:SS です。
For fixed date and time fields, the date or the time is specified by the SDVAL parameter.
日付 (固定) と時刻 (固定) のフィールドの場合、日付または時刻は SDVAL パラメータによって指定されます。
Examples of date and time special HTML tags that are recognized by Office as fields are shown in the following table:
次の表に、Office がフィールドとして認識する日付と時刻の HTML 特殊タグの例を示します。
|
Fields
|
Office Tag
|
|
Date is fixed
|
<SDFIELD TYPE=DATETIME SDVAL="35843,4239988426" SDNUM="1031;1031;DD/MM/YY">17/02/98</SDFIELD>
|
|
Date is variable
|
<SDFIELD TYPE=DATETIME SDNUM="1031;1031;DD/MM/YY">17/02/98</SDFIELD>
|
|
Time is fixed
|
<SDFIELD TYPE=DATETIME SDVAL="35843,4240335648" SDNUM="1031;1031;HH:MM:SS">10:10:36</SDFIELD>
|
|
Time is variable
|
<SDFIELD TYPE=DATETIME SDNUM="1031;1031;HH:MM:SS">10:10:36</SDFIELD>
|
For DocInformation fields, the TYPE parameter equals DOCINFO. The SUBTYPE parameter displays the specific field type, for example, for the "Created" DocInformation field, SUBTYPE=CREATE. For date and time DocInformation fields, the FORMAT parameter equals DATE or TIME, and the SDNUM parameter indicates the number format that is used. The SDFIXED parameter indicates if the content of the DocInformation field is fixed or not.
ドキュメント情報フィールドの場合、TYPE パラメータは DOCINFO です。SUBTYPE パラメータは特殊なフィールドの種類を表示します。たとえば、作成されたドキュメント情報フィールドの場合は SUBTYPE=CREATE です。日付と時刻のドキュメント情報フィールドの場合、FORMAT パラメータは DATE または TIME です。また、SDNUM パラメータは使用されている数字書式を示します。SDFIXED パラメータは、ドキュメント情報フィールドの内容が固定されているかどうかを示します。
The contents of a fixed date or time field are equal to the SDVAL parameter, otherwise the contents are equal to the text found between the SDFIELD HTML tags.
固定された日付と時刻のフィールドの内容は SDVAL パラメータと同じです。それ以外のフィールドの内容は SDFIELD HTMLタグに囲まれたテキストと同じです。
Examples of DocInformation special HTML tags that are recognized by Office as fields are shown in the following table:
次の表に、Office がフィールドとして認識するドキュメント情報フィールドの HTML 特殊タグの例を示します。
|
Fields
|
Office Tag
|
|
Description (fixed content)
|
<SDFIELD TYPE=DOCINFO SUBTYPE=COMMENT SDFIXED>Description</SDFIELD>
|
|
Creation date
|
<SDFIELD TYPE=DOCINFO SUBTYPE=CREATE FORMAT=DATE SDNUM="1031;1031;QQ YY">1. Quarter 98</SDFIELD>
|
|
Creation time (fixed content)
|
<SDFIELD TYPE=DOCINFO SUBTYPE=CREATE FORMAT=TIME SDVAL="0" SDNUM="1031;1031;HH:MM:SS AM/PM" SDFIXED>03:58:35 PM</SDFIELD>
|
|
Modification date
|
<SDFIELD TYPE=DOCINFO SUBTYPE=CHANGE FORMAT=DATE SDNUM="1031;1031;NN DD MMM, YY">Mo 23 Feb, 98</SDFIELD>
|